package com.doo.guia1.exercises;

import java.util.ArrayList;
import java.util.Date;

import com.doo.guia1.model.Address;
import com.doo.guia1.model.Career;
import com.doo.guia1.model.Person;
import com.doo.guia1.model.Student;

public class Excercises {

	private static Excercises instance = null;

	private ArrayList<Student> students;
	private ArrayList<Career> careers;

	public static Excercises getInstance() {
		if (instance == null) {
			instance = new Excercises();
		}
		return instance;
	}

	/**
	 * Ejercicio 2
	 * 
	 * Instancie el sistema con por lo menos: 6 alumnos, 2 carreras, 5 materias
	 * por carrera y 2 inscripciones por alumno.
	 */
	@SuppressWarnings("deprecation")
	private void doExcercise2() {

		students.add(new Student("Ignacio", "Belderrain",
				new Date(1989, 1, 22), new Address("Argentina", "Buenos Aires",
						"La Plata", "Caseros", 4560), 34000440, Person.MALE,
				9999, 2008));

		students.add(new Student("Javier", "Belderrain", new Date(1989, 1, 22),
				new Address("Argentina", "Buenos Aires", "La Plata", "Caseros",
						4560), 34000440, Person.MALE, 9999, 2008));

		students.add(new Student("Maite", "Belderrain", new Date(1989, 1, 22),
				new Address("Argentina", "Buenos Aires", "La Plata", "Caseros",
						4560), 34000440, Person.MALE, 9999, 2008));

		students.add(new Student("Lucia", "Belderrain", new Date(1989, 1, 22),
				new Address("Argentina", "Buenos Aires", "La Plata", "Caseros",
						4560), 34000440, Person.MALE, 9999, 2008));

		students.add(new Student("Santiago", "Belderrain",
				new Date(1989, 1, 22), new Address("Argentina", "Buenos Aires",
						"La Plata", "Caseros", 4560), 34000440, Person.MALE,
				9999, 2008));

		students.add(new Student("Maria Marta", "Mainetti", new Date(1989, 1,
				22), new Address("Argentina", "Buenos Aires", "La Plata",
				"Caseros", 4560), 34000440, Person.MALE, 9999, 2008));
		
		careers.add(new Career(1,"Ingenieria Informatica" , null));
		careers.add(new Career(2,"Ingenieria Ambiental" , null));

	}

	public void execute() {
		this.doExcercise2();
	}

}
